package dsk.demo.product.service.impl;

import dsk.demo.product.entity.ContactEntity;
import dsk.demo.product.service.ContactService;
import org.springframework.stereotype.Service;

/**
 * 联系方式
 */
@Service
public class ContactServiceImpl implements ContactService {

    public ContactEntity getContact() {
        ContactEntity contactEntity = new ContactEntity();

        if ((int) (Math.random() * 2) == 0) {
            contactEntity.setName("Camel Chen（CHENDONG）");
            contactEntity.setPhone("0086-15258031692");
            contactEntity.setEmail("camelchen@yinpeiauto.com");
            contactEntity.setQrCodeWeChat("http://yinpeiauto.com/images/chenWeChat.png");
            contactEntity.setQrCodeWhatsapp("http://yinpeiauto.com/images/chenWhatsApp.png");
        } else {
            contactEntity.setName("Tango Dai（DAISHIKUN）");
            contactEntity.setPhone("0086-18058448261");
            contactEntity.setEmail("tango@yinpeiauto.com");
            contactEntity.setQrCodeWeChat("http://yinpeiauto.com/images/daiWeChat.png");
            contactEntity.setQrCodeWhatsapp("http://yinpeiauto.com/images/daiWhatsApp.png");
        }
        return contactEntity;
    }
}
